package com.tom.hook;

import android.app.Application;

/**
 * Added by Tom on 2024/07/09.
 * 需要在配置文件中配置该Application。
 */
public class BaseApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        HookStartActivityUtil hookUtil = new HookStartActivityUtil(this, ProxyActivity.class);
        try {
            hookUtil.hookStartActivity();
            hookUtil.hookLaunchActivity();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
